package com.bungarus.ratelimit;

/**
 * Created by tang on 2019/11/1.
 */
public class RateLimitExceedException extends RateLimitException {
    private int limit;
    private LimitUnit unit;
    public RateLimitExceedException(String s, int limit, LimitUnit i) {
        super(s);
        this.limit = limit;
        this.unit = i;
    }

    public int getLimit() {
        return limit;
    }

    public LimitUnit getUnit() {
        return unit;
    }
}
